<div class="editcate_top">
    <h2>Xem liên hệ</h2>
    <a href="javascript:void(0)" onclick ="$('#light_adct').hide();$('#fade_adct').hide()"><img src="<?php echo img_link('close.png', 'admin'); ?>" class="png" /></a>
</div>

<div id="div_message"></div>

<form enctype="multipart/form-data" method="post" action="<?php echo action_link('view/'.$booking->id); ?>" id="booking_form">
<div class="editcate_ct">	
	<div class="boxadd">
    	<ul class="linect">
    	<?php $customer_info = $this->booking_model->get_customer_info_by_id($booking->id_customer);?>    	
    	<?php if(isset($customer_info) && $customer_info != null) {?>
    		<li>
                <span class="left"><b>Họ tên :</b></span>
                <span class="right"><?php echo $customer_info->fullname;?></span>
            </li>   
            <li>
                <span class="left"><b>Email :</b></span>
                <span class="right"><?php echo $customer_info->email;?></span>
            </li>                            
       		<li>
                <span class="left"><b>Điện thoại :</b></span>
                <span class="right"><?php echo $customer_info->telephone;?></span>
            </li>
         <?php }?>  
        
            <li>
                <span class="left"><b>Nội dung :</b></span>
                <span class="right"><font color="blue"><?php echo $booking->contents;?></font></span>
            </li>  
            <li>
                <span class="left"><b>Ngày tạo:</b></span>
                <span class="right"><?php echo date('d-m-Y', strtotime($booking->date_create)); ?></span>
            </li>                  
        </ul>
    </div>    
</div>
</form>
<script>
$('#booking_form').iframer({
    onComplete: function(msg){
    	if(msg == 'yes') {
    		$('#light_adct').hide();$('#fade_adct').hide();
            load_content('row_<?php echo $booking->id; ?>', admin_url+'booking/load_row/<?php echo $booking->id; ?>');
            $('.linecate2').has('#row_<?php echo $booking->id; ?>').css('background-color', '#FFFFE0');
    	}
    	else show_error('div_message', msg)
    }
});
</script>